<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
<script>
	var a = 3;
	function test(){
	    debugger;
	    a = 2;
	    console.log("test", a);
	}
	test();
	console.log(a)
</script>
</body>
</html>